package com.aliyun.messagemgt.converter;

import com.aliyun.messagemgt.dto.BaseMessageTemplateDTO;
import com.aliyun.messagemgt.dto.query.MessageTemplateQuery;
import com.aliyun.messagemgt.entities.BaseMessageTemplate;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @ClassName: BaseMessageTemplateParamConverter
 * @Description:
 * @Author: wugongzi
 * @Date: 2021/9/15 16:35
 * @Version: 1.0
 */
@Mapper
public interface BaseMessageTemplateConverter {
    BaseMessageTemplateConverter INSTANCE = Mappers.getMapper(BaseMessageTemplateConverter.class);

    BaseMessageTemplate messageTemplateQuery2baseMessageTemplate(MessageTemplateQuery qry);

    BaseMessageTemplateDTO baseMessageTemplate2baseMessageTemplateDTO(BaseMessageTemplate baseMessageTemplate);
}
